var speed: float = 6.0;
private var moveDirection = Vector3.zero;
var controller : CharacterController;
var target: Transform;
function OnCollisionEnter() {
	Destroy(gameObject);
	print("hello");
}
function Start() {
	
	//controller = GetComponent(CharacterController);
}
function Update () {
	rigidbody.AddForce(transform.TransformDirection(Vector3.left));
	/*if(!target){
		return;
	}
	moveDirection = transform.TransformDirection(Vector3.forward);
	moveDirection *= speed;
	controller.Move(moveDirection * Time.deltaTime);*/
}